﻿Imports ProjectWIFE
Imports ProjectWIFE.Configuration.INI_Configuration
Module Module1

 Sub Main()
  Dim myIni As New INI(DefaultConfig, My.Application.Info.DirectoryPath & "\Examples\Example.ini")

  Console.WriteLine(myIni("python")("developer").Value)
  Console.WriteLine(myIni("python")("directory").Value)
  myIni("python")("developer").Value = 3

  Console.WriteLine(myIni("python")("developer").Value)
  myIni.Tidy()

  myIni.Save()


  Dim AnotherIni As New INI(DefaultConfig)
  ' Add a Section:  A  with parameter  A1 , A2 & A3
  AnotherIni.AddSectionWithParameters("C").AddParameter("A").AddParameter("A2").AddParameter("A3")
  ' Add Sections: B, C, D
  AnotherIni.AddSection("B").AddSection("D").AddSection("A")
  AnotherIni.Tidy()


  Console.WriteLine("Example2")
  Dim myIni2 As New INI(DefaultConfig, My.Application.Info.DirectoryPath & "\Examples\Example2.ini")
  Console.WriteLine(myIni2("InternetShortcut")("IconFile").Value)


  Console.ReadLine()

 End Sub

End Module
